<?php
namespace BP\Sys;

use BP\En\EntityMyPK;

require_once("BP/En/Map.php");
class Langue extends EntityMyPK {
	public function getModel () 
	{
		return $this->GetValStringByKey(LangueAttr::$Model);
	}
	public function setModel ($value) // [String value]
	{
		$this->SetValByKey(LangueAttr::$Model, $value);
	}
	public function getSort () 
	{
		return $this->GetValStringByKey(LangueAttr::$Sort);
	}
	public function setSort ($value) // [String value]
	{
		$this->SetValByKey(LangueAttr::$Sort, $value);
	}
	public function getSortKey () 
	{
		return $this->GetValStringByKey(LangueAttr::$SortKey);
	}
	public function setSortKey ($value) // [String value]
	{
		$this->SetValByKey(LangueAttr::$SortKey, $value);
	}
	public function getLang () 
	{
		return $this->GetValStringByKey(LangueAttr::$Langue);
	}
	public function setLang ($value) // [String value]
	{
		$this->SetValByKey(LangueAttr::$Langue, $value);
	}
	public function getVal () 
	{
		return $this->GetValStringByKey(LangueAttr::$Val);
	}
	public function setVal ($value) // [String value]
	{
		$this->SetValByKey(LangueAttr::$Val, $value);
	}
	public function getModelKey () 
	{
		return $this->GetValStringByKey(LangueAttr::$ModelKey);
	}
	public function setModelKey ($value) // [String value]
	{
		$this->SetValByKey(LangueAttr::$ModelKey, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($pk) // [String pk]
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_Langue", "语言定义");
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->AddMyPK();
		$map->AddTBString(LangueAttr::$Langue, NULL, "语言ID",  TRUE ,  TRUE , 0, 20, 20);
		$map->AddTBString(LangueAttr::$Model, NULL, "模块",  TRUE ,  TRUE , 0, 20, 20);
		$map->AddTBString(LangueAttr::$ModelKey, NULL, "模块实例",  TRUE ,  TRUE , 0, 200, 20);
		$map->AddTBString(LangueAttr::$Sort, NULL, "类别",  TRUE ,  TRUE , 0, 20, 20);
		$map->AddTBString(LangueAttr::$SortKey, NULL, "类别PK",  TRUE ,  TRUE , 0, 100, 20);
		$map->AddTBString(LangueAttr::$Val, NULL, "语言�?",  TRUE ,  TRUE , 0, 3999, 20);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	protected function beforeUpdateInsertAction () 
	{
		$this->setMyPK((((((((($this->getLang() . "_") . $this->getModel()) . "_") . $this->getModelKey()) . "_") . $this->getSort()) . "_") . $this->getSortKey()));
		return parent->beforeUpdateInsertAction();
	}
}
?>
